package behavior.strategy;

public interface Strategy {
	public void doOperator(int num1, int num2);
}

class AddStrategy implements Strategy{

	@Override
	public void doOperator(int num1, int num2) {
		System.out.println(num1+"+"+num2+"="+(num1+num2));		
	}
}

class SubtractStrategy implements Strategy{

	@Override
	public void doOperator(int num1, int num2) {
		System.out.println(num1+"-"+num2+"="+(num1-num2));		
	}
}
